﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ViewStudentCourses.aspx.vb" Inherits="DARSClients.ViewStudentCourses" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Beyond DARS - Student Courses</title>
    <link rel="stylesheet" type="text/css" href="Styles/myStyle.css" />
    <style type="text/css">
        #gvStuInfo
        {
            color: blue;
            margin: auto;
        }
        #gvDiv
        {
            margin: 10px auto 10px auto;
            width: 50%;
            padding: 0;
            max-width: 80%;
            text-align: center;
        }
        #studentInfo
        {
            text-align:center;
            width:50%;
            margin:auto;
        }
    </style>
</head>
<body>
<div class="container">
    <form id="form1" runat="server">
    <div>
    
        <div class="title-nav">
            <span><strong>View Student Courses</strong></span><br />
            <br />
            Enter in StudentID<br />
        <asp:TextBox ID="txtStuID" runat="server"></asp:TextBox>
        <br />
        <asp:Label ID="lblErr" runat="server"></asp:Label>
        <br />
        <br />
        <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="btn2"/>
            <br />
        </div>
        <div class="newLine"></div>
        <div class="content">
        <div id="studentInfo">
        
        <asp:label runat="server" ID="lblFName">First Name : </asp:label>
        
            <asp:Label ID="lblFirstName" runat="server" Text="Label"></asp:Label>
        
        <asp:Label runat="server" ID="lblLName">Last Name : </asp:Label>
            <asp:Label ID="lblLastName" runat="server" Text="Label"></asp:Label>
        </div>
        <div id="gvDiv">
        <asp:GridView ID="gvStuInfo" runat="server" AutoGenerateColumns="False" 
                AllowPaging="True" DataKeyNames="CourseID" EnablePersistedSelection="True" 
                ShowFooter="True" AllowSorting="True" 
                EmptyDataText="No record found for this student" 
                ShowHeaderWhenEmpty="True" BackColor="White" BorderColor="#999999" 
                BorderStyle="Solid" BorderWidth="1px" CellPadding="3" ForeColor="Black" 
                GridLines="Vertical">
            <AlternatingRowStyle BackColor="#CCCCCC" />
            <Columns>
                <asp:BoundField HeaderText="Course ID" DataField="CourseID" 
                    NullDisplayText="N/A" >
                <ItemStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField HeaderText="Semester" DataField="SemesterTaken" />
                <asp:BoundField HeaderText="Number of Times Taken" 
                    DataField="AttemptNumber" >
                <HeaderStyle Width="100px" />
                <ItemStyle Width="100px" />
                </asp:BoundField>
                <asp:BoundField HeaderText="Grade" DataField="GradeEarned" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" BorderStyle="None" />
            <HeaderStyle BackColor="Black" ForeColor="White" Width="100px" 
                Font-Bold="True" />
            <PagerSettings NextPageText="        Next    " 
                Position="TopAndBottom" PreviousPageText="  Prev      " />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle Width="100px" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
        </asp:GridView>
        </div>
    </div>
    </div>
    </div>
    <div class="footer">
        <a><input  type="submit" class="text_button" id="btnLogout" runat="server" 
                value="Logout" causesvalidation="False" />
           <input type="submit" class="text_button" id="btnhome" runat="server" 
                value="Home" causesvalidation="False" /> </a>
        </div>
    </form>
</body>
</html>
